import api.prompt2bigimgurl
import api.split_save_img
from api import prompt2bigimgurl, split_save_img


def prompt2localurl(prompt):
    img_url,taskId=prompt2bigimgurl.prompt2img(prompt)
    img_file,sub_img_files=split_save_img.split_and_save_image(img_url,taskId)
    return img_file,sub_img_files,taskId